﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GestionePolveri2
{
    public partial class ElencoPartiteItem : UserControl
    {
        bool m_status = false;

        public string POS 
        {
            get { return this.lblPOS.Text; }
            set { this.lblPOS.Text = string.Format("POS: {0}", value); }
        }

        public string Descrizione
        {
            get { return this.lblDescrColore.Text; }
            set { this.lblDescrColore.Text = string.Format("Descr.: {0}", value); }
        }

        public string CodColore
        {
            get { return this.lblCodColore.Text; }
            set { this.lblCodColore.Text = string.Format("Cod. Colore: {0}", value); }
        }

        public string Note
        {
            get { return this.lblNote.Text; }
            set { this.lblNote.Text = string.Format("Note: {0}", value); }
        }

        public string Operatore
        {
            get { return this.lblOperatore.Text; }
            set { this.lblOperatore.Text = string.Format("Oper.: {0}", value); }
        }

        public bool Status
        {
            get { return m_status; }
            set 
            { 
                m_status = value;

                this.picOk.Image = (m_status ? GestionePolveri2.Properties.Resources.check2 : GestionePolveri2.Properties.Resources.delete);
            }
        }

        public ElencoPartiteItem()
        {
            InitializeComponent();
        }
    }
}
